package library_management.user;

import library_management.operation.IOperation;
import library_management.operation.impl.*;

public class AdminUser extends User{
    public AdminUser(String adminName) {
        this.name=adminName;
        operations=new IOperation[]{
                new DisplayOperation(),
                new AddOperation(),
                new RemoveOperation(),
                new FindOperation(),
                new UpdateOperation()
        };
    }

    @Override
    public int menu() {
        System.out.println("===============================");
        System.out.println("欢迎"+this.name+"登录图书管理系统");
        System.out.println("1、展示现有书籍");
        System.out.println("2、增加书籍");
        System.out.println("3、下架书籍");
        System.out.println("4、查找书籍");
        System.out.println("5、更新书籍");
        System.out.println("-1、退出登录");
        System.out.println("请输入您的选择：");
        int choice=scanner.nextInt();
        return choice;
    }
}
